package com.quyunshuo.module.home.fragment.home

import com.quyunshuo.androidbaseframemvvm.base.mvvm.m.BaseRepository
import com.quyunshuo.edwincoffeetwo.network.HomeApiService
import com.quyunshuo.edwincoffeetwo.network.bean.BaseResponse
import com.quyunshuo.edwincoffeetwo.network.bean.ProjectTabItem
import javax.inject.Inject

/**
 * @author DBoy 2021/7/6 <p>
 * - 文件描述 :
 */

class HomeRepository @Inject constructor() : BaseRepository() {
    private  val TAG = "HomeRepository"
    @Inject
    lateinit var mApi: HomeApiService

    suspend fun getData() = request<BaseResponse<MutableList<ProjectTabItem>>> {
        val response = mApi.getProjectTab()
        emit(response!!)
    }
}